package com.lagou.feign;

import com.lagou.feign.impl.CodeServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ClassName CodeService
 * @Description
 * @Author playboy
 * @Date 2021/6/26 3:03 下午
 * @Version 1.0
 **/
@FeignClient(name = "lagou-service-code", path = "code", fallback = CodeServiceImpl.class)
public interface CodeService {

	@RequestMapping("/validate/{email}/{code}")
	public Integer validate(@PathVariable("email") String email, @PathVariable("code") String code);


}
